package main

import "fmt"

//天然高并发
func main() {
	fmt.Println("hello go...")
	sub, i := getSumAndSub(10, 2)
	print(sub, i)
	fmt.Println("\n")
	fmt.Println("sub=", sub, "i=", i)

}

//支持返回多个值 前面是参数  后面是返回值
func getSumAndSub(n1 int, n2 int) (int, int) {

	sum := n1 + n2
	sub := n1 - n2
	return sum, sub
}
